﻿package com.urbansquall.echo 
{
	import flash.events.Event;
	
	/**
	 * Allows dispatching of more events than SoundChannel normally does.
	 * @author Marshall Powers
	 */
	public class WrapperEvent extends Event
	{
		public static const SOUND_STOPPED : String = "wrapper_soundStop";
		public static const SOUND_COMPLETE : String = "wrapper_soundComplete";
		
		private var m_wrapper : ChannelWrapper
		
		public function WrapperEvent(a_channelWrapper : ChannelWrapper, a_type : String, a_bubbles : Boolean = false, a_cancelable : Boolean = false)
		{
			super(a_type, a_bubbles, a_cancelable);
			m_wrapper = a_channelWrapper;
		}
	
		public function get channelWrapper() : ChannelWrapper
		{
			return m_wrapper;
		}
	}
}